<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" th:href="@{/css/matrix-login.css}" />
    <link th:href="@{/font-awesome/css/font-awesome.css}" rel="stylesheet" />

</head>
<body>
  	<a shiro:hasRole="ADMIN" href="http://www.baidu.com">Administer the system</a><br/>
 	 欢迎<span shiro:principal property="userName"></span> 登陆成功   <br/>
 	<!-- 拥有<span shiro:principal property="permissions" ></span> -->
 	<table>
 		<th th:each="permission : ${permissions}" th:text="${permission.code}"></th>
 		<th th:each="permission : ${permissions}" th:text="${permission.name}"></th>
 	</table>
 	
 	


<script type="text/javascript" th:src="@{/js/jquery-1.11.2.min.js}"></script>
</body>
</html>